package main

import (
	"fmt"
	"time"
)

func main() {
	//定义一个map，没有初始化，初始值是 nil
	var testMap map[string]int
	println(testMap == nil)

	//初始化，长度为8
	testMap = make(map[string]int, 8)
	println(testMap == nil)

	//添加键值对
	testMap["张三"] = 100

	fmt.Printf("%+v\n", testMap)

	logDate := time.Now()

	paramDadte := time.Now()
	paramDadte = paramDadte.Add(8 * time.Hour)

	fmt.Println(logDate)
	fmt.Println(paramDadte)
	fmt.Println("%v", logDate.After(paramDadte))
	fmt.Println("%v", paramDadte.After(logDate))

}
